import { useEffect, useState } from 'react';
export const useModal = () => {
  const [visible, setVisible] = useState<boolean>(false);
  const show = () => {
    setVisible(true);
  };
  const hide = () => {
    setVisible(false);
  };
  return {
    show,
    hide,
    visible,
  };
};
